Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "speedometer">

With this node you can add a speedometer to an existing dashboard or a new one created by the node to show numbers.

Configurations

dashboard string
Dashboard title to which the speedometer will be added
widget string
Title that will have the widget containing the speedometer.

Inputs

A number directly in the payload that will be shown in the gauge chart or a JSON Object like the following:
  
{
    "metricId": [Service Uri Of A Sensor],
    "metricHighLevelType": "Sensor",
    "metricName": [The name of the Sensor],
    "metricType": [A measure recorded by the sensor]
}
{
    "metricId": [The ID of a KPI],
    "metricHighLevelType": "MyKPI",
    "metricName": [The name of the MyKPI],
    "metricType": [The type of the measure saved in the KPI]
}
An example of the JSON Object filled with correct data:

{
    "metricId": "http://www.disit.org/km4city/resource/tusc_weather_sensor_ow_3166540",
    "metricHighLevelType": "Sensor",
    "metricName": "tusc_weather_sensor_ow_3166540",
    "metricType": "airTemperature"
}
{
    "metricId": "17056579",
    "metricHighLevelType": "MyKPI",
    "metricName": "OBD2 - Intake Air Temperature",
    "metricType": "Temperature"
}